﻿using UnityEngine;
using System.Collections;

public class GameAttribute : MonoBehaviour
{
    public static GameAttribute Instance;

    public const float StartSpeed = 5f;
    public const float StartLife = 1f;

    public float Speed = 5f;
    public float Life = 3f;

    [HideInInspector]
    public bool Pause;
    [HideInInspector]
    public bool IsPlaying;

    private void Awake()
    {
        Instance = this;
        DontDestroyOnLoad(this);
        this.Speed = StartSpeed;
        this.Life = StartLife;
        this.IsPlaying = true;
        this.Pause = false;
    }
}
